import request from '@/utils/request'

// 查询产品档案主档列表
export function listProductArchive(query) {
  return request({
    url: '/hbs/productArchive/list',
    method: 'get',
    params: query
  })
}

// 查询产品档案主档详细
export function getProductArchive(id) {
  return request({
    url: '/hbs/productArchive/' + id,
    method: 'get'
  })
}

// 新增产品档案主档
export function addProductArchive(data) {
  return request({
    url: '/hbs/productArchive',
    method: 'post',
    data: data
  })
}

// 修改产品档案主档
export function updateProductArchive(data) {
  return request({
    url: '/hbs/productArchive',
    method: 'put',
    data: data
  })
}

// 删除产品档案主档
export function delProductArchive(id) {
  return request({
    url: '/hbs/productArchive/' + id,
    method: 'delete'
  })
}
